package org.apogee.mil.client.services.trainee;

import java.util.ArrayList;
import java.util.List;

import org.apogee.mil.shared.Question;

import com.extjs.gxt.ui.client.data.BaseModel;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("trainee")
public interface TraineeService extends RemoteService {

	public boolean initialize();
	
	public ArrayList<BaseModel> getAvailableTests(int userId);
	
	public ArrayList<BaseModel> getRecentScores(int userId);
	
	public ArrayList<BaseModel> getTestVolumes(String test);
	
	public List<Question> getQuestions(String test, int numQuestions, int volume, int reviewType);
	
	public boolean addResults(int userid, String test, float score);
	
	public boolean addMessage(int to_user, int from_user, String message);
	
	public boolean close();
	
	public String getTrainer(int userId);
	
}
